package co.gov.medellin.ssti.sub.model.service.impl;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import co.gov.medellin.ssti.sub.model.dao.RepDetCruceDAO;
import co.gov.medellin.ssti.sub.model.dao.exception.DAOException;
import co.gov.medellin.ssti.sub.model.service.RepDetCruceService;
import co.gov.medellin.ssti.sub.model.vo.BeneficiarioVO;
import co.gov.medellin.ssti.sub.model.vo.RepDetCruceVO;

@Service
public class RepDetCruceServiceImpl implements RepDetCruceService {
	@Autowired
	RepDetCruceDAO repDetCruceDAOImpl2;

	public Collection<BeneficiarioVO> findBeneficiariosCruce(
			RepDetCruceVO criteria) {
		try {
			return repDetCruceDAOImpl2.findBeneficiariosCruce(criteria);
		} catch (Exception e) {
			throw new DAOException(e);
		}
	}

	public Long findCantidadBeneficiarios(RepDetCruceVO criteria) {
		try {
			return repDetCruceDAOImpl2.findCantidadBeneficiarios(criteria);
		} catch (Exception e) {
			throw new DAOException(e);
		}
	}

	public RepDetCruceVO findFilters(RepDetCruceVO repDetCruceVO) {
		try {
			return repDetCruceDAOImpl2.findFilters(repDetCruceVO);
		} catch (Exception e) {
			throw new DAOException(e);
		}
	}

}
